	 <?php if($this->session->flashdata('error')):?>
	 <div class="notification error">
        <div class="notification-border-top"></div>
        <div class="notification-border-middle"> <span>Error Data !</span> </div>

        <div class="notification-border-bottom"></div>
      </div>
	  <?php endif;?>
	  
	  <?php if($this->session->flashdata('success')):?>
      <div class="notification success">
        <div class="notification-border-top"></div>
        <div class="notification-border-middle"> <span>Save Data Successfull !</span> </div>
        <div class="notification-border-bottom"></div>
      </div>
	  <?php endif;?>

   
  
  <div class="frame">
    <div class="frame-border-top"></div>
    <div class="frame-border-middle">
      <h1 class="header">Add / Edit Activity</h1>

      
      <div class="accordion">
        <div class="accordion-tab">
          <h1><a href="<?=site_url('activity/active');?>">Back</a></h1>
          <div class="accordion-tab-open-close"></div>
          <div class="clear"></div>

        </div>
        <div class="accordion-panel">
          <div class="accordion-panel-border-top">
            <div class="accordion-panel-border-bottom">
              <form method="post" action="<?=site_url($action);?>" >
			  
                <div class="form-row padding-lr-5">
                  <label>Date</label>
                  <input type="text" value="<?=date('d-m-Y');?>" name="date"/>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Time</label>
                  <input type="text" value="<?=date("H:i:s");?>" name="time"/>
                  <div class="clear"></div>
                </div>
				
                <div class="form-row padding-lr-5 skinnable">
                  <label>Type</label>
				  
                  <select name="type" style="width:254px;margin-left:20px;padding:5px">
				   <?php if($this->session->userdata('user_pos')==$this->config->item('ta')):?>
                    <option value="1" selected="selected">Call</option>
                    <!--<option value="2">Invalid Data</option>-->
                    <option value="3">Presentasi</option>
					<!--<option value="6">Follow Up</option>-->
					<?php elseif($this->session->userdata('user_pos')==$this->config->item('se')):?>
					<option value="1" selected="selected">Call</option>
                    <option value="2">Invalid Data</option>
                    <option value="4">Meeting</option>]
					<option value="6">Follow Up</option>
					<?php endif;?>
                  </select>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Customer</label>
                  <input id="form-name" type="text" value="" name="customer" autocomplete="off"/>
                  <div class="clear"></div>
                </div>
				
				<!--<div class="form-row padding-lr-5 skinnable">
                  <label>Customer</label>
				  
                  <select name="customer" style="width:254px;margin-left:20px;padding:5px">
				  <?php foreach($customers as $rec):?>
                    <option value="<?=$rec['id'];?>"><?=$rec['customer_name'];?></option>
                  <?php endforeach;?>  
                  </select>
                  <div class="clear"></div>
                </div>
				-->
				
				
				<div class="form-row padding-lr-5">
                  <label>Location</label>
                  <input type="text" value="" name="location"/>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Participant</label>
                  <input type="text" value="" name="participant"/>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Objective</label>
                  <input type="text" value="" name="objective"/>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Result</label>
                  <input type="text" value="" name="result"/>
                  <div class="clear"></div>
                </div>
				
				<div class="form-row padding-lr-5">
                  <label>Follow up</label>
                  <select name="type" style="width:254px;margin-left:20px;padding:5px">
                    <option value="Offering">Offering</option>
                    <option value="Deal">Deal</option>
					<option value="Failed">Failed</option>
                  </select>
                  <div class="clear"></div>
                </div>
                
				<div class="form-row padding-lr-3">
                  <label>Note</label>
                  <div class="textarea-wrapper">
                  	<textarea name="desc" cols="34" rows="7"></textarea>
                  </div>
                  <div class="clear"></div>
                </div>
               

                <div class="form-row padding-lr-15">
					<input class="submit" name="save"  value="Submit" type="submit">
                  <div class="clear"></div>
                </div>
              </form>
            </div>
          </div>
        </div>
       
        
      
	  
    </div>
    <div class="frame-border-bottom-lined"></div>
  </div>
  
  
</div>

